#ifndef __CLIENT_SOCK__
#define __CLIENT_SOCK__

#include <boost/asio.hpp>
#include <boost/bind.hpp>
using namespace boost;

using boost::asio::io_service;
using boost::asio::ip::tcp;
using namespace boost::asio;

#include <string>
#include <iostream>
using namespace std;

class CClientSock
{
public:
    CClientSock(tcp::endpoint &endpoint);
    virtual ~CClientSock(void);

    unsigned int send(uint32_t *pBuff, unsigned int len);
    unsigned int recv(char *pBuff, int len);
    void close();

private:
    io_service *io_service_;
    tcp::socket *socket_;
};

#endif
